package com.sdy.hospitalguard.biz.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.sdy.hospitalguard.biz.dto.PatientDetailsDTO;
import com.sdy.hospitalguard.biz.dto.PatientPcDTO;
import com.sdy.hospitalguard.biz.dto.VisitAppointmentDTO;
import com.sdy.hospitalguard.biz.dto.VisitRecordDTO;
import com.sdy.hospitalguard.biz.model.HospitalUser;
import com.sdy.hospitalguard.biz.model.PatientInformation;
import com.sdy.mvc.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 患者登记表 Mapper 接口
 * </p>
 *
 * @author zzq
 * @since 2020-05-08
 */
public interface PatientInformationMapper extends BaseMapper<PatientInformation> {
    PatientDetailsDTO patientQuery(@Param("userId") Integer userId);
    List<VisitAppointmentDTO> patientTodayVisit(@Param("patientId") Integer patientId);

    /**
     * -------PC端接口----------
     */
    Page<PatientPcDTO> patienPageQuery (Page page,@Param("content") String content,
                                        @Param("areaId") Integer areaId,@Param("startDate") String startDate,
                                        @Param("endDate")String endDate);

    List<PatientPcDTO> patienPageQuery (@Param("content") String content,
                                        @Param("areaId") Integer areaId,@Param("startDate") String startDate,
                                        @Param("endDate")String endDate);

    PatientPcDTO patienDetails(@Param("id")Integer id);

    List<HospitalUser> patienEscortList(@Param("id")Integer id);

    Page<VisitRecordDTO> patienVisitPage(Page page,@Param("id")Integer id);
}
